package com.tian.utils;

import com.tian.dto.LoanPlainDto;
import com.tian.entity.LoanPlain;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年08月28日 15:30
 * 在线刷题 1200+题和1000+篇干货文章：<a href="https://woaijava.cc/">博客地址</a>
 */
public class LoanPlainDataConvertUtil {

    public static LoanPlainDto convert(LoanPlain loanPlain){
        LoanPlainDto loanPlainDto=new LoanPlainDto();
        loanPlainDto.setLoanTime(loanPlain.getLoanTime());
        loanPlainDto.setLoanId(loanPlain.getLoanId());
        loanPlainDto.setId(loanPlain.getId());
        loanPlainDto.setMoney(loanPlain.getMoney());
        loanPlainDto.setStatus(loanPlain.getStatus());
        loanPlainDto.setUserId(loanPlain.getUserId());
        return loanPlainDto;
    }

}
